package com.jihu.design.creatation.factory.simplefactory;

/**
 * @author jihu
 * @date 2021/9/14
 */
public class WuLinSimpleFactory {

    public AbstractCar newCar(String type){
        if("van".equals(type)){
            return new VanCar();
        } else if("mini".equals(type)){
            return new MiniCar();
        }
      return null;
    }
}
